#! /bin/bash

# AUTHORS: Augustin CHERON <cheron.augustin@gmail.com>
# APROSPOS: this script will check several rule, and will report error.

echo_help () {
    echo "Usage: norm_check [hlr] file\n"
    echo "-l number of line in a file\n"
    echo "-r number of character per row\n"
}

#check the number of line in a file 
# usage: check_line(file_name, max_nbline)
check_line () {
    if ($# -lt 3) then
        echo "error in check_line: not enought parameter\n"
        echo " param: $*\n"
        return -1
    elif !(-e $1 && -r $1) then
        echo " error in check_line: file $1 doesn't exist or is not readable\n"
        return -1
    fi
    
    file = $1
    max_nb_line = $2

    #FIXME
}

check () {
}
